Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BP Efficiency Improvement #194

Merged
merged 8 commits into from
Sep 3, 2024
Merged

BP Efficiency Improvement #194

merged 8 commits into from
Sep 3, 2024

Conversation

JoeyT1994
Copy link
Contributor

@JoeyT1994 JoeyT1994 commented Jul 11, 2024

The use of get in the function message(bp_cache::BeliefPropagationCache, edge::PartitionEdge) was causing roughly a factor of 2 slowdown in the BP code and the allocation of ~30% more memory than necessary.

The code has been changed to avoid this (I am not sure why get is so inefficient here).

Additionally the factor(bp_cache::BeliefPropagationCache) function has been changed to be more efficient and general.

@JoeyT1994
Copy link
Contributor Author

@mtfishman is this able to be merged?

@mtfishman mtfishman merged commit 174cb4d into ITensor:main Sep 3, 2024
5 of 6 checks passed
@mtfishman
Copy link
Member

Yes, thanks for the reminder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants